.swiper {
    width: 100%;
    height: 500px;
}
.swiper-slide {
    text-align: center;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.thumbnail-swiper {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}
.thumbnail-swiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
}
.thumbnail-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}
.thumbnail-swiper.mobile-theme .swiper-slide-thumb-active {
    border-color: var(--accent-color);
}
.download-btn {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #8E44AD 0%, #9B59B6 100%);
}
.download-btn.mobile-theme {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}
.download-btn.dynamic-desktop-theme {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
}
.download-btn.dynamic-mobile-theme {
    background: linear-gradient(135deg, #F39C12 0%, #D35400 100%);
}
.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(142, 68, 173, 0.4);
}
.download-btn.mobile-theme:hover {
    box-shadow: 0 10px 15px -3px rgba(231, 76, 60, 0.4);
}
.download-btn.dynamic-desktop-theme:hover {
    box-shadow: 0 10px 15px -3px rgba(52, 152, 219, 0.4);
}
.download-btn.dynamic-mobile-theme:hover {
    box-shadow: 0 10px 15px -3px rgba(243, 156, 18, 0.4);
}
.wallpaper-type-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}
.wallpaper-type-badge.mobile-theme {
    background-color: var(--accent-color);
}
.wallpaper-type-badge.dynamic-desktop-theme {
    background-color: #3498DB;
}
.wallpaper-type-badge.dynamic-mobile-theme {
    background-color: #F39C12;
}
.wallpaper-type-badge i {
    margin-right: 6px;
}
.mobile-wallpaper .swiper {
    height: 600px;
}
.mobile-wallpaper .thumbnail-swiper {
    height: 120px;
}
.mobile-wallpaper .thumbnail-swiper .swiper-slide {
    width: 20%;
}
/* 弹层样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.download-modal {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}
.modal-overlay.active .download-modal {
    transform: translateY(0);
}
.download-option {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.download-option:hover {
    background-color: #f8f9fa;
}
.download-option-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
}
.download-option-btn.desktop {
    background-color: var(--primary-color);
}
.download-option-btn.mobile {
    background-color: var(--accent-color);
}
.download-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-modal:hover {
    color: #555;
}
.image-description {
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    color: #666;
    font-style: italic;
}
/* 视频播放控制 */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.play-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}
.play-button i {
    color: white;
    font-size: 24px;
}
.swiper-slide.active-video .play-button {
    display: none;
}

/* 收藏按钮样式 */
.favorite-btn {
    transition: all 0.3s ease;
    border: 2px solid;
    margin-bottom: 10px;
}
.favorite-btn.desktop-theme {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.favorite-btn.mobile-theme {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.favorite-btn.dynamic-desktop-theme {
    border-color: #3498DB;
    color: #3498DB;
}
.favorite-btn.dynamic-mobile-theme {
    border-color: #F39C12;
    color: #F39C12;
}
.favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.favorite-btn.favorited {
    background-color: var(--primary-color);
    color: white;
}
.favorite-btn.favorited.mobile-theme {
    background-color: var(--accent-color);
}
.favorite-btn.favorited.dynamic-desktop-theme {
    background-color: #3498DB;
}
.favorite-btn.favorited.dynamic-mobile-theme {
    background-color: #F39C12;
}